from django.urls import path

from apps.goods.views import IndexView, ListView, HotGoodsView,MySearchView,DetailView,DetailVisitView

urlpatterns = {

    path('index/',IndexView.as_view()),
    # 列表页
    path('list/<category_id>/skus/',ListView.as_view()),
    # 列表页热销
    path('hot/<category_id>/',HotGoodsView.as_view()),
    # 搜索视图
    path('search/',MySearchView()),
    # /detail/(?P<sku_id>\d+)/
    # 详情页
    path('detail/<sku_id>/',DetailView.as_view()),
    # 商品类型访问量
    path('detail/visit/<category_id>/', DetailVisitView.as_view()),
}

